<?php
//$intOrderHeaderID = 18;
include (MODULE_SHOP_HOST . "/navigation/EmailHeader");
include (MODULE . "/action/qrySelectOrderHeaderWithDetails");
unset($intTotal);
//STYLE='table-layout: fixed'
echo  "<link rel='stylesheet' href='http://$SERVER_NAME/shop.css'>
	<table width='600' height='1000' align='center' class='Normal' border='0'  bgcolor='white'>
	<TR ALIGN=LEFT VALIGN=TOP>
		<TD COLSPAN=6  WIDTH=600 HEIGHT=100 align='center'><IMG SRC='http://".$SERVER_NAME."/images".SITE_SUFFIX."/EmailHeader.jpg' HEIGHT=100 WIDTH=600 ALIGN=TOP BORDER=0></TD>
	</TR>

	<tr>
		<td colspan='6' align='center'  height='70'>
			<h1 class='orderheading'>Notification Of Return </h1>
		</td>
	</tr>
	<tr>
		<td colspan='3' align='left' class='Normal' height='40'>
			<b>RT Number: </b>RT100".$intOrderHeaderID."
		</td>
		<td colspan='3' align='right'  height='40'>
			<b>".date("g:i a j F Y ")."</b>
		</td>
	</tr>
	
	<tr height='10'>
		<td colspan='6'>
			<hr>
		</td>
	</tr>
	
	<tr>
		<td colspan='6' valign='top'  height='170'>
			<br/><b>To: ".$myrow["SupplierFax"]."</b>
			<br/><b>".$myrow["Supplier"]."</b>
			<br/><br/>".$myrow["SupplierFirstName"]."&nbsp;".$myrow["SupplierSurname"]."
			<br/>".$myrow["SupplierAddress1"];

				if ($myrow["SupplierAddress2"]){
					echo "<br/>".$myrow["SupplierAddress2"];
				}
		
echo "
			<br/>".$myrow["SupplierTown"]."
			<br/>".$myrow["SupplierCounty"]."
			<br/>".$myrow["SupplierPostCode"]."
		</td>
	</tr>
	
	<tr  height='20'>
		<td colspan='3'>
			<b>Phone : </b>".$myrow["SupplierPhoneNo"]."
		</td>
		<td colspan='3'>
			<b>Fax : </b>".$myrow["SupplierFax"]."
		</td>
	</tr>
	
	<tr height='10'>
		<td colspan='6'>
			<hr>
		</td>
	</tr>
	
	<tr>
		<td colspan='6' valign='top' height='20'>
			<br/><b>We have today issued a returns number RT100".$intOrderHeaderID." to :</b>
			&nbsp;".$myrow["DeliveryName"]."
		</td>
	</tr>
	
	<tr>
		<td colspan='6' valign='top' height='20'>
			The customer has 7 days to return the original receipt, paperwork, watch etc. to yourselves. The 
			customer should quote RT100".$intOrderHeaderID." on all correspondence.
		</td>
	</tr>
			
	<tr height='20'>
		<td colspan='3' height='20'>
			<b>Type Of Dispatch : </b>Payment Refund
		</td>
		<td colspan='3'>
			&nbsp;
		</td>
	</tr>
	
	<tr height='20'>
		<td colspan='6' valign='top'>
			The Product being returmed is :
		</td>
	</tr>
	
	<tr align='center' height='20'>
        <td align='left' width='230'><b>Supplier Code</b></td>
		<td align='center' width='250' colspan='4'><b>".DOMAIN_NAME." Product Name & Code</b></td>
		<td align='right' width='120'><b>Retail Price ".CURRENCY."</b></td>
    </tr>";
	// Process the order details
	//include (MODULE . "/action/qrySelectOrderDetails");
	do{
		echo "
		<tr align='right' bgcolor=\"".switch_background($boBG)."\">
	 		<td align='left' height='40'>
				<span class='Small'>".$myrow["SupplierProductID"]."</span>
			</td>
			<td colspan='4'><span class='Small'>".$myrow["Product"]."&nbsp;".$myrow["OwnProductCode"]."</span></td>
			<td>".$myrow["FullPrice"]."</td>
	    </tr>";
	} while ($myrow = mysql_fetch_array($result));
	
	
echo "
	<tr height='10'>
		<td colspan='6'>
			<hr>
		</td>
	</tr>
	
	<tr height='20'>
		<td colspan='6'>
			Once the watch has been received back please fax this sheet to ourseleves confirming that 
			it is okay and still fit for sale.
		</td>
	</tr>
	
	<tr height='20'>
		<td>
			<b>Product Model No. : </b>
		</td>
		<td colspan='5'>
			&nbsp;
		</td>
	</tr>

	<tr height='1'>
		<td><img src='./images".SITE_SUFFIX."/space.gif' height='1' border='0' alt=''></td>
		<td colspan='4' bgcolor='black'><img src='./images".SITE_SUFFIX."/space.gif' height='1' border='0' alt=''></td><td><img src='./images".SITE_SUFFIX."/space.gif' height='1' border='0' alt=''></td>
	</tr>
	
	<tr height='20'>
		<td>
			<b>Date Received In Warehouse : </b>
		</td>
		<td colspan='5'>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;
		</td>
	</tr>
	
	<tr height='1'>
		<td><img src='./images".SITE_SUFFIX."/space.gif' height='1' border='0' alt=''></td><td colspan='4' bgcolor='black'><img src='./images".SITE_SUFFIX."/space.gif' height='1' border='0' alt=''></td><td><img src='./images".SITE_SUFFIX."/space.gif' height='1' border='0' alt=''></td>
	</tr>
		
	<tr height='20'>
		<td colspan='6'>
			<br/>OK to issue refund to customer. <b>Signed :</b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<b>Print Name :</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/><br/>
		</td>
		
	</tr>

	
	
	<tr  height='20'>
		<td colspan='6' align='right'><b>Fax To : ".FAX_NUMBER."</b></td>
	</tr>

	<tr valign='bottom'>
 		<td colspan='6' align='center' class='small'>
			".COMPANY_REGISTERED_ADDRESS."&nbsp;".VAT_NUMBER."
		</td>
    </tr>
	
</table>";

?>